.box {
  display: flex;
  width: 120px;
  height: 120px;
  border: 1px dashed #000;
  border-radius: 5px;

  &:hover {
    color: red;
    border-color: red;
  }
}

.avatar {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;

  img {
    width: 100%;
    height: 100%;
  }

  .mask {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }

  &:hover .mask {
    display: block;
  }
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  text-align: center;
  cursor: pointer;
}
